/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dava.csvgenerator;


import java.io.ByteArrayOutputStream;


/**
 * Output of CSV file for the CSV controller.
 *
 * @author dava
 */
public class OutputCsv extends ByteArrayOutputStream {

    /**
     * Meta-information of the OutputCsv.
     */
    private String csvName;

    /**
     * Creates new OutputCsv with the given meta-information.
     *
     * @param name meta-information for name of CSV file.
     */
    public OutputCsv(final String name) {
        super();
        if (name == null) {
            throw new IllegalArgumentException("meta-info must not be null");
        }
        this.csvName = name;
    }

    /**
     * Returns meta-information of the OutputCsv.
     *
     * @return meta-information of the OutputCsv
     */
    public String getCsvName() {
        return csvName;
    }

}
